<template>
    <div>
        <dynamic-table :table-data="tableData" :table-header="tableConfig"></dynamic-table>
    </div>
</template>

<script>
import DynamicTable from "./components/dynamicTable1.vue";
export default {
    components: {
        DynamicTable,
    },
    data() {
        return {
            tableData:[],
            tableConfig:[]
        }
    },
    methods: {
        getData() {
            this.sdk.get('./tableData.json').then(response=>{
                this.tableData = response.data.tableData;
                this.sdk.get('./tableConfig.json').then(res=>{
                    this.tableConfig = res.data.tableConfig;
                });
            });
        }
    },
    mounted() {
        this.getData();
    }
}
</script>

<style scoped>

</style>